package com.jxnd.sunflower.service;

import com.jxnd.sunflower.domain.RUser;
import com.jxnd.sunflower.domain.bo.LoginBO;
import com.jxnd.sunflower.domain.bo.RetrievePsswordBO;
import com.jxnd.sunflower.domain.bo.UserBO;
import com.jxnd.sunflower.domain.dto.UserDTO;
import org.springframework.stereotype.Service;


public interface UserService {

    //判断用户是否注册
    boolean queryEmailExist(String email);

    //用户注册
    String addUser(UserBO userBO);

    //找回密码
    int RetrievePassword(RetrievePsswordBO bo);

    //发送注册码到用户邮箱
    void emailCode(String email);

    //登录
    String login(LoginBO bo);

    //用户基本信息
    UserDTO userInfo(Integer email);
}
